Simulating file operations: an exercise in calculational data refinement

نویسنده

  • A. Bijlsma
چکیده

This note was written as an exercise in calculating with abstract data type specifications, both from the user’s point of view and from the implementer’s. We have chosen an example that is well-known to anyone who has ever struggled to convert programs involving ISO Pascal file operations to some nonstandard Pascal version – an experience by now familiar to a sizable proportion of the earth’s population. In order to derive a solution to this problem, we regard ISO Pascal files as an abstract data type, disregarding the fact that Pascal compilers will not support this. We specify this abstract data type by giving a model, i.e. we define a number of variables of mathematically well-understood types in terms of which the operations on ISO Pascal files can be described. Let a component type T be given. Our model consists of four variables, namely

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Push-Button Verification of File Systems via Crash Refinement

The file system is an essential operating system component for persisting data on storage devices. Writing bug-free file systems is non-trivial, as they must correctly implement and maintain complex on-disk data structures even in the presence of system crashes and reorderings of disk operations. This paper presents Yggdrasil, a toolkit for writing file systems with push-button verification: Yg...

متن کامل

Relations, graphs and programs

Much emphasis has been placed in recent years on deriving or calculating programs rather than proving them correct. Adequate calculational frame­ works are needed to support such an approach. This thesis explores the use of a calculus of binary relations to express and reason about graph-theoretical concepts in the context of program construction. Since graphs playa promi­ nent role in algorith...

متن کامل

Multiscale Multiphysic Mixed Geomechanical Model for Deformable Porous Media Considering the Effects of Surrounding Area

Porous media of hydro-carbon reservoirs is influenced from several scales. Effective scales of fluid phases and solid phase are different. To reduce calculations in simulating porous hydro-carbon reservoirs, each physical phenomenon should be assisted in the range of its effective scale. The simulating with fine scale in a multiple physics hydro-carbon media exceeds the current computational ca...

متن کامل

I/O Analysis and Optimization for an AMR Cosmology Application

In this paper, we investigate the data access patterns and file I/O behaviors of a production cosmology application that uses the adaptive mesh refinement (AMR) technique for its domain decomposition. This application was originally developed using Hierarchical Data Format (HDF version 4) I/O library and since HDF4 does not provide parallel I/O facilities, the global file I/O operations were ca...

متن کامل

Collective I/O Optimizations for Adaptive Mesh Refinement Data Writes on Lustre File System

Adaptive mesh refinement (AMR) applications refine small regions of a physical space. As a result, when AMR data has to be stored in a file, writing data involves storing a large number of small blocks of data. Chombo is an AMR software library for solving partial differential equations over block-structured grids, and is used in large-scale climate and fluid dynamics simulations. Chombo’s curr...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1997